#include<iostream>
#include<cstring>
using namespace std;
string zi, zhu;
int main()
{
	cin >> zi;
	getchar();
	cin >> zhu;
	int pos = 0;
	int len1 = zi.size();
	int len2 = zhu.size();
	for (int i = 0; i < len2; i++) {
		for (int j = 0; j < len1; j++) {
			if (zi[i] == zhu[j]) {
				
			}
		}
	}
	return 0;
}